package com.iflytek.sbd.config;

import com.iflytek.sbd.resolver.ParameterResolver;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import java.util.List;

/**
 * @program: sbd
 * @description: 参数解析器生效配置文件
 * @author: 陈英俊
 * @create: 2022-01-10 10:23
 */
//@Configuration
public class ResolverConfig extends WebMvcConfigurationSupport {

    @Override
    protected void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
        argumentResolvers.add(new ParameterResolver());
    }
}
